package com.xiaoyu.lanling.feature.accost.model

import `in`.srain.cube.request.JsonData
import `in`.srain.cube.views.list.ListItemTypedBase
import com.xiaoyu.base.model.User
import java.io.Serializable

class QuickAccostUserItem(jsonData: JsonData) : ListItemTypedBase, Serializable {

    val user = User.fromJson(jsonData)

    var selected = true
        private set

    fun toggle() {
        selected = !selected
    }

    override fun getViewType(): Int {
        return 0
    }
}